"smooth scrolling"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="wrapper smooth">
<!--<progress max="100" value="0"></progress>-->
<div class='navbar' title='Menu'>
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
<div class="close">
<i class="fa fa-times" aria-hidden="true"></i>
</div>
<!-- Logo -->
<div class="logo">
<a href="index.html">Logo</a>
<a id="night">Night Mode</a>
</div>
<div id="navigationWrap">
<div class="nav-container menu">
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<div class="social">
<a href="https://facebook.com" target="_blank" aria-label="facebook" rel="noreferrer noopener"><i class="fa fa-facebook fa-1x"></i></a>
<a href="https://twitter.com" target="_blank" aria-label="facebook" rel="noreferrer noopener"><i class="fa fa-twitter fa-1x" ></i></a>
<a href="https://instagram.com" target="_blank" aria-label="facebook" rel="noreferrer noopener"><i class="fa fa-instagram fa-1x"></i></a>
<a href="https://youtube.com" target="_blank" aria-label="facebook" rel="noreferrer noopener"><i class="fa fa-youtube fa-1x"></i></a>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@charset "UTF-8";
@import url("https://use.typekit.net/ngi2bbw.css");
/* Global Settings */
body {
margin: 0;
padding: 0;
height: 100vh;
font-family: termina, sans-serif;
background-color: #e0e1dd;
transition: background-color 0.9s ease;
max-width: 100%;
overflow-x: hidden;
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body.night-mode {
background: #121212;
}
html {
scroll-behavior: smooth;
}
h1 {
font-size: 3.5rem;
font-weight: 900;
transition: color 0.9s ease;
}
.night-mode h1 {
color: #e0e1dd;
}
h2 {
transition: color 0.9s ease;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: